import 'package:json_annotation/json_annotation.dart';

part 'LoginResponseVo.g.dart';

@JsonSerializable()
class LoginResponseVo {
  @JsonKey(name: "permissions")
  List<String>? permissions;
  @JsonKey(name: "token")
  String? token;
  @JsonKey(name: "userId")
  String? userId;

  LoginResponseVo({
    this.permissions,
    this.token,
    this.userId,
  });

  factory LoginResponseVo.fromJson(Map<String, dynamic> json) => _$LoginResponseVoFromJson(json);

  Map<String, dynamic> toJson() => _$LoginResponseVoToJson(this);
}